package com.yms.mybatis_plus.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yms.mybatis_plus.entity.User;
import com.yms.mybatis_plus.mapper.UserMapper;
import com.yms.mybatis_plus.service.UserServie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version : 1.0
 * @Author: yangmingsong
 * @Date: 2021/5/7-05-07-12:17
 * @Description: mybatis-plus-exercise
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements UserServie {

    @Autowired
    private UserMapper userMapper;


    @Override
    public List<User> showAll() {
        List<User> users = userMapper.insert();

        return users;
    }
}
